package main

import "fmt"

func main() {
	var userMap = map[int]string{
		1: "张三",
		2: "李四",
	}
	fmt.Println(userMap)
	fmt.Println(userMap[1])
	fmt.Println(userMap[3])
	value := userMap[1]
	fmt.Println(value)
	value, ok := userMap[1]
	fmt.Println(value, ok)

	delete(userMap, 1)
	fmt.Println(userMap)

	var map2 = map[int]string{}
	fmt.Println(map2)
	var map3 = make(map[int]string)
	fmt.Println(map3)

}
